#include "widget.h"
#include "ui_widget.h"
#include<QButtonGroup>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QButtonGroup* g1 = new QButtonGroup(this);
       QButtonGroup* g2 = new QButtonGroup(this);
       g1->addButton(ui->radioButton);
       g1->addButton(ui->radioButton_2);
       g2->addButton(ui->radioButton_3);
       g2->addButton(ui->radioButton_4);
}

Widget::~Widget()
{
    delete ui;
}

